/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package battleship.game;

import util.MsgPrinter;

/**
 *
 * @author ali
 */
public class StateGameStart extends AbstractState {

    private static AbstractState instance;

    public static AbstractState getInstance() {
        if (instance == null) {
            instance = new StateGameStart();
        }
        return instance;
    }


    public void execute() {
        String msg = "Welcome to Battleship";
        MsgPrinter.print(msg);
        init();
    }

    @Override
    public StateType getNextState() {
        StateType player1ShipPlacement = new StatePlayer1PlaceShips();
//        StateType player1Turn = new StatePlayer1Turn();
//        StateType player2Turn = new StatePlayer2Turn();



        return player1ShipPlacement;
    }

    private void init() {
        Game.init();
    }
}
